﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 优惠活动表
/// </summary>
public partial class Promotion
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int PId { get; set; }

    /// <summary>
    /// r-发布人（引用供应商表）
    /// </summary>
    public int PSupplierId { get; set; }

    /// <summary>
    /// c,r-活动商品（引用商品表）
    /// </summary>
    public int PGoodId { get; set; }

    /// <summary>
    /// c,r,u-活动价
    /// </summary>
    public decimal PDiscountPrice { get; set; }

    /// <summary>
    /// c,r,u-开始时间
    /// </summary>
    public DateTime PStartTime { get; set; }

    /// <summary>
    /// c,r,u-结束时间
    /// </summary>
    public DateTime PEndTime { get; set; }

    /// <summary>
    /// r-创建时间
    /// </summary>
    public DateTime? PCreateAt { get; set; }

    /// <summary>
    /// r-修改时间
    /// </summary>
    public DateTime? PUpdateAt { get; set; }

    public virtual Good PGood { get; set; } = null!;

    public virtual Supplier PSupplier { get; set; } = null!;
}
